(Qasas) 28 : 7
وَأَوْحَيْنَا إِلَىٰ أُمِّ مُوسَىٰ أَنْ أَرْضِعِيهِ ۖ فَإِذَا خِفْتِ عَلَيْهِ فَأَلْقِيهِ فِي الْيَمِّ وَلَا تَخَافِي وَلَا تَحْزَنِي ۖ إِنَّا رَادُّوهُ إِلَيْكِ وَجَاعِلُوهُ مِنَ الْمُرْسَلِينَ

And We inspired to the mother of Moses: "Breastfeed him; then when you fear upon him, cast him into the river and you don’t fear and you don’t grieve; indeed, We will return him to you and will make him one among the Messengers".

See explanation 2: 49 and 20: 39-41.